package com.tebiecloud.mpweixin.server.configuration;

import com.tebiecloud.mpweixin.client.constants.QueueConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Mq配置
 * @Author: tebie
 * @Date: 2019-09-10 12:26
 */
@Configuration
public class MqConfiguration {

    @Bean
    public Queue queueMpweixinUserVisit() {
        return new Queue(QueueConstants.QUEUE_MPWEIXIN_USER_VISIT, true);
    }

    @Bean
    public Queue queueMpweixinEventInfo() {
        return new Queue(QueueConstants.QUEUE_MPWEIXIN_EVENT_INFO, true);
    }

}
